package com.yyys.web.entity;

import java.io.Serializable;

/**
 * Created by zhengsenwen on 2017/8/5.
 */
public class GoodsInfoIdClass implements Serializable {

    private static final Long serialVersionUID = 1L;

    private String ctid;
    private String goodsName;
    private String goodsTypeName;

    public GoodsInfoIdClass() {
    }


    public String getCtid() {
        return ctid;
    }

    public void setCtid(String ctid) {
        this.ctid = ctid;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsTypeName() {
        return goodsTypeName;
    }

    public void setGoodsTypeName(String goodsTypeName) {
        this.goodsTypeName = goodsTypeName;
    }


    @Override
    public int hashCode() {
        final int PRIME = 31;
        int result =1;
        result=PRIME*result+((ctid==null)?0:ctid.hashCode());
        result=PRIME*result+((goodsName==null)?0:goodsName.hashCode());
        result=PRIME*result+((goodsTypeName==null)?0:goodsTypeName.hashCode());
        return result;
    }
    @Override
    public boolean equals(java.lang.Object obj) {
        if(this ==obj){
            return true;
        }
        if(null ==obj ){
            return false;
        }
        final GoodsInfoIdClass other=(GoodsInfoIdClass)obj;
        if(ctid==null){
            if(other.ctid!=null){
                return false;
            }
        }else if(!ctid.equals(other.ctid)){
            return false;
        }
        if(goodsName==null){
            if(other.goodsName!=null){
                return false;
            }
        }else if (!goodsName.equals(other.goodsName)){
            return false;
        }
        if(goodsTypeName==null){
            if(other.goodsTypeName!=null){
                return false;
            }
        }else if (!goodsTypeName.equals(other.goodsTypeName)){
            return false;
        }
        return true;
    }
}
